package com.bsj.power.tool.testRtp;


import com.bsj.power.common.util.StringUtils;
import com.bsj.tools.HexStr;

import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.util.ArrayList;
import java.util.List;

/**
 * @Description TODO
 * @Date 2022/8/15 19:20
 **/
public class Rtp1 {
    public static List<byte[]> getRtpStream() throws IOException {
        File file = new File("F:\\11.txt");
        List<String> list = Files.readAllLines(file.toPath());
        List<byte[]> data = new ArrayList<>();
        list.forEach(k -> {
            if (StringUtils.isNotEmpty(k)) {
                try {
                    k = k.trim();
                    data.add(HexStr.toArray(k));
                } catch (Exception e) {
                    System.out.println("k="  + k);
                }
            }
        });
        return data;
    }
}
